Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODStorageUnit


ExistsWithCursor

The ExistsWithCursor method returns a Boolean value that indicates whether the focus context represented by the specified storage-unit cursor exists in this storage unit.

ODBoolean ExistsWithCursor (in ODStorageUnitCursor cursor);
cursor
A reference to the storage-unit cursor representing the focus context to be tested.
return value
kODTrue if the focus context specified by the storage-unit cursor exists in this storage unit, otherwise kODFalse.
DISCUSSION
You can call this method to see whether you can focus this storage unit using the specified storage-unit cursor; however, this method does not change the current focus context.

If this method returns true, it is safe to call the FocusWithCursor method with the specified storage-unit cursor.

EXCEPTIONS
kODErrZeroRefCount
This storage unit has a reference count of 0.
SEE ALSO
The ODStorageUnit::Exists method (page 681).
The ODStorageUnit::FocusWithCursor method (page 686).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help